import http from '@/utils/http'
// 新增地址
export const addAddress=(data)=>{
  return http.post("/api/addAddress",data)
}
// 获取地址
export const getdefaultAddress=()=>{
  return http.get("/api/getdefaultAddress")
}
// 修改地址，将要修改的地址改为默认地址
export const updataAddress=(params,id)=>{
  return http.post("/api/updataAddress",{params:params,id:id})
}
// 删除地址
export const removeAddress=(id)=>{
  return http.delete(`/api/removeAddress?id=${id}`)
}
// 获取地址列表
export const getAddressList=()=>{
  return http.get("/api/getAddressList")
}